package com.gmu.pojo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 测核酸活动
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TblActivities对象", description="测核酸活动")
@NoArgsConstructor
@AllArgsConstructor
@ExcelIgnoreUnannotated
public class TblActivities implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序列号")
    @TableId(value = "activities_id", type = IdType.AUTO)
    private Integer activitiesId;

    @ApiModelProperty(value = "活动名称")
    @ExcelProperty(value = "活动名称")
    @ColumnWidth(20)
    private String activityName;

    @ApiModelProperty(value = "活动开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @ExcelProperty(value = "活动开始时间")
    @ColumnWidth(20)
    private Date activityBeginTime;

    @ApiModelProperty(value = "活动结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @ExcelProperty(value = "活动结束时间")
    @ColumnWidth(20)
    private Date activityEndTime;

    @ApiModelProperty(value = "总人数")
    @ExcelProperty(value = "总人数")
    private Integer totalPeoples;

    @ApiModelProperty(value = "负责人")
    @ExcelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "负责人电话")
    @ExcelProperty(value = "负责人电话")
    @ColumnWidth(12)
    private String leaderPhone;

    @ApiModelProperty(value = "被采样单位")
    @ExcelProperty(value = "被采样单位")
    @ColumnWidth(20)
    private String beSampleUnits;

    @ApiModelProperty(value = "被采样单位id")
    private Integer beSampleUnitsId;

    @ApiModelProperty(value = "被采样单位负责人")
    private String beSampleUnitsName;

    @ApiModelProperty(value = "被采样单位负责人电话")
    @ExcelProperty(value = "被采样单位负责人电话")
    @ColumnWidth(12)
    private String beSampleUnitsPhone;

    @ApiModelProperty(value = "采样单位")
    @ExcelProperty(value = "采样单位")
    @ColumnWidth(20)
    private String sampleUnits;

    @ApiModelProperty(value = "采样单位id")
    private Integer sampleUnitsId;

    @ApiModelProperty(value = "采样单位负责人")
    @ExcelProperty(value = "采样单位负责人")
    private String sampleUnitsName;

    @ApiModelProperty(value = "采样单位负责人电话")
    @ExcelProperty(value = "采样单位负责人电话")
    @ColumnWidth(12)
    private String sampleUnitsPhone;

    @ApiModelProperty(value = "活动状态-0未举行-1举行中-2结束")
    private Integer status;

    @ApiModelProperty(value = "导出excel时使用")
    @TableField(exist = false)
    @ExcelProperty(value = "状态")
    private String sta;

    @ApiModelProperty(value = "备注")
    @ColumnWidth(50)
    private String remark;

}
